package com.ruoyi.factorydata.service;

import java.util.List;
import com.ruoyi.factorydata.domain.CraftProcessMaterialRelation;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 工艺工序物料Service接口
 *
 * @author ruoyi
 * @date 2025-07-15
 */
public interface ICraftProcessMaterialRelationService extends IService<CraftProcessMaterialRelation> {
    /**
     * 查询工艺工序物料
     *
     * @param id 工艺工序物料主键
     * @return 工艺工序物料
     */
    public CraftProcessMaterialRelation selectCraftProcessMaterialRelationById(Long id);

    /**
     * 查询工艺工序物料列表
     *
     * @param craftProcessMaterialRelation 工艺工序物料
     * @return 工艺工序物料集合
     */
    public List<CraftProcessMaterialRelation> selectCraftProcessMaterialRelationList(CraftProcessMaterialRelation craftProcessMaterialRelation);

    /**
     * 新增工艺工序物料
     *
     * @param craftProcessMaterialRelation 工艺工序物料
     * @return 结果
     */
    public int insertCraftProcessMaterialRelation(CraftProcessMaterialRelation craftProcessMaterialRelation);

    /**
     * 修改工艺工序物料
     *
     * @param craftProcessMaterialRelation 工艺工序物料
     * @return 结果
     */
    public int updateCraftProcessMaterialRelation(CraftProcessMaterialRelation craftProcessMaterialRelation);

    /**
     * 批量删除工艺工序物料
     *
     * @param ids 需要删除的工艺工序物料主键集合
     * @return 结果
     */
    public int deleteCraftProcessMaterialRelationByIds(Long[] ids);

    /**
     * 删除工艺工序物料信息
     *
     * @param id 工艺工序物料主键
     * @return 结果
     */
    public int deleteCraftProcessMaterialRelationById(Long id);
}